﻿//Copyright (C) <2013>  <jonathan cleeve norton> All Rights Reserved 
//Contact jon.norton@fin-plus.co.uk website <http://www.fin-plus.co.uk/>
using System;

namespace FinPlusInterfaces
{
    public interface IConnDatabase
    {
        event EventHandler QueryUpdate;

        IQuery Query(QueryType queryType, string group, DateTime date, string where, ConType conType = ConType.None);

        string Save(IPod value);

        string Close(IPod value);

        IQuery SavePod(string group, string where, ConType conType = ConType.None);

        IQuery Select(string group, string where, ConType conType = ConType.None);

        IQuery SelectAsOf(string group, DateTime asOf, string where, ConType conType = ConType.None);

        IQuery SelectFrom(string group, DateTime from, string where, ConType conType = ConType.None);

        IQuery SelectId(string group, int Id);

        void Dispose();

        void Dispose(IQuery query);
    }
}
